<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Tetris: level.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Tetris
   
   </div>
   <div id="projectbrief">Um jogo do tipo tetris</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<div class="title">level.h</div>  </div>
</div>
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 ﻿#ifndef LEVEL_H
<a name="l00002"></a>00002 <span class="preprocessor">#define LEVEL_H</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00018"></a><a class="code" href="class_level.html">00018</a> <span class="keyword">class </span><a class="code" href="class_level.html" title="Classe do tipo Level.">Level</a>
<a name="l00019"></a>00019 {
<a name="l00020"></a>00020 <span class="keyword">public</span>:
<a name="l00024"></a>00024     <a class="code" href="class_level.html#a7a696c928ca5d5354db6e50e46d0f67d" title="Construtor padrão classe Level.">Level</a>();
<a name="l00028"></a>00028     <a class="code" href="class_level.html#a249eac1e8f19ff44134efa5e986feaca" title="Destrutor padrão classe Level.">~Level</a>();
<a name="l00033"></a><a class="code" href="class_level.html#a4010ac54d2f76d8f45965a5265a9ab3e">00033</a>     <span class="keywordtype">int</span> <a class="code" href="class_level.html#a4010ac54d2f76d8f45965a5265a9ab3e" title="Função membro pública da classe Level para obter o valor inteiro do level atual.">getLevelValue</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> m_LevelValue;}
<a name="l00038"></a><a class="code" href="class_level.html#aebb4c40536b3813207e42f1c09c703a5">00038</a>     <span class="keywordtype">int</span> <a class="code" href="class_level.html#aebb4c40536b3813207e42f1c09c703a5" title="Função membro pública da classe Level para obter o score do round correspondente ao level atual (m_Le...">getScoreNovaPeca</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> m_LevelValue*10;}
<a name="l00043"></a><a class="code" href="class_level.html#a3557af4a9a9a951da54fbc7968254baf">00043</a>     <span class="keywordtype">int</span> <a class="code" href="class_level.html#a3557af4a9a9a951da54fbc7968254baf" title="Função membro pública da classe Level para obter o score correspondente ao level atual (m_LevelValue)...">getScoreLinhaCompleta</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> m_LevelValue*50;}
<a name="l00048"></a><a class="code" href="class_level.html#a45f9b4eded889235ed2d9713f1599450">00048</a>     <span class="keywordtype">int</span> <a class="code" href="class_level.html#a45f9b4eded889235ed2d9713f1599450" title="Função membro pública da classe Level para obter o score do round correspondente ao level atual (m_Le...">getScoreBonus</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> m_LevelValue*m_LevelValue*m_LevelValue*1000;}
<a name="l00053"></a><a class="code" href="class_level.html#a18667c63f16a7b8b9e6812c2392e7383">00053</a>     <span class="keywordtype">int</span> <a class="code" href="class_level.html#a18667c63f16a7b8b9e6812c2392e7383" title="Função membro pública da classe Level para obter o score necessário para passar de level...">getScoreToNextLevel</a>()<span class="keyword"> const </span>{<span class="keywordflow">return</span> 150*m_LevelValue*m_LevelValue;}
<a name="l00058"></a>00058     <span class="keywordtype">int</span> <a class="code" href="class_level.html#a8be723752e54025f450b32a64c7a3997" title="Função membro pública da classe Level para obter o intervalo de tempo para o movimento de Board::m_Pe...">getTimer</a>() <span class="keyword">const</span>;
<a name="l00063"></a><a class="code" href="class_level.html#ace8a2707e614b56191c42caf72edf842">00063</a>     <span class="keywordtype">void</span> <a class="code" href="class_level.html#ace8a2707e614b56191c42caf72edf842" title="Função membro pública da classe Level para modificar o valor de m_LevelValue.">setLevel</a>(<span class="keywordtype">int</span> novoLevel){m_LevelValue = novoLevel;}
<a name="l00064"></a>00064 <span class="keyword">private</span>:
<a name="l00065"></a>00065     <span class="keywordtype">int</span> m_LevelValue;   
<a name="l00066"></a>00066 };
<a name="l00067"></a>00067 
<a name="l00068"></a>00068 <span class="preprocessor">#endif // SCORE_H</span>
</pre></div></div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Tue Nov 29 2011 12:33:35 for Tetris by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
